package BucketMapping;

import java.util.*;

//Contains an array list of items that have an identical hashcode
public class MappingRecord {
	private ArrayList items;
	private int hashCode;
	public MappingRecord(Object _item){
		items = new ArrayList();
		items.add(_item);
	}
	public MappingRecord(int _hashCode, Object _item){
		this(_item);
		hashCode = _hashCode;
	}
	public int getKey(){
		return hashCode;
	}
	public void addItem(Object _item){
		items.add(_item);
	}
	public Iterator getIterator(){
		return items.iterator();
	}
}
